<?php

use App\Library\Logic\SystemConfigLogic;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up(): void
    {
        migrationUp(__FILE__);
        $str = <<<EOT
{"index": {"hot": {"open": false}, "pet": {"url": "/pagesA/shop/product?type=pet", "open": true, "fileId": "20240830102327344721", "showDate": true}, "launch": {"url": "", "open": false, "fileId": "20240831095859908898"}, "service": {"url": "/pagesA/wx/hezong", "open": true, "fileId": "20240829161542347226"}, "activity": {"url": "/pagesA/shop/product?activityType=4", "open": true, "fileId": "20240830102220872388"}, "classify": {"open": true}, "materiel": {"url": "/pagesA/shop/product?type=materiel", "open": true, "fileId": "20240830102332356109", "showDate": true}}, "switch": {"index": {"1": true, "2": true, "3": true, "4": false, "url": {"1": "/pagesA/shop/product?type=pet", "2": "/pagesA/shop/product?type=materiel", "3": "/pagesA/shop/product?activityType=4"}, "image": ["20240830085934451811", "20240830085927578012", "20240821163654480351"]}, "active": {"open": true, "rule": {"5": 95, "10": 90}, "fileId": "20240819181402831189", "cartFileId": "20240829141347134992"}, "launch": false}, "activity": {"1": {"name": "守宫", "show": true, "fileId": "20240822093947058996"}, "2": {"name": "合肥展会", "show": false, "fileId": "20240822093930779360"}, "3": {"name": "抖音", "show": true, "fileId": "20240822093930779360"}, "4": {"name": "买一送七", "show": true, "fileId": "20240822093930779360"}}, "withdraw": {"wx": {"max": "500", "min": "0.1"}}}
EOT;
        SystemConfigLogic::insertForModel('content', json_decode($str, true));
    }
};
